import axios from '@/libs/api.request'

/**
 * 排行榜信息列表
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const getList = (params) => {
  return axios.request({
    url: 'Rank/index',
    method: 'get',
    params: params
  })
}

/**
 * 导出排行榜
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const exportList = (params) => {
  return axios.request({
    url: 'Rank/export',
    method: 'get',
    params: params,
    responseType: 'arraybuffer'
  })
}

/**
 * 踢出用户
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const kickRole = (params) => {
  return axios.request({
    url: 'Rank/kickRole',
    method: 'get',
    params: params
  })
}
